int subtractProductAndSum(int n) {
	int sum = 0;
	int ret = 1;
	while (n) {
		sum += n % 10;
		ret *= n % 10;
		n /= 10;
	}
	return ret - sum;
}